﻿using SqlSugar;

namespace SqlSugar_Bugs.Entities
{
    /// <summary>
    /// 系统用户实体
    /// </summary>
    [SugarTable("TB_User", IsCreateTableFiledSort = true)]
    [SugarIndex("IX_UserFactor_RowId", nameof(RowId), OrderByType.Asc, true)]
    public class UserEntity
    {
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true, CreateTableFieldSort = 1)]
        public int Id { get; set; }

        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(CreateTableFieldSort = 2)]
        public string RowId { get; set; }

        /// <summary>
        /// 登录名称
        /// </summary>
        [SugarColumn(CreateTableFieldSort = 11)]
        public string LoginName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [SugarColumn(CreateTableFieldSort = 12)]
        public string Password { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        [SugarColumn(CreateTableFieldSort = 13)]
        public string NickName { get; set; }

        /// <summary>
        /// 是否被禁用
        /// </summary>
        [SugarColumn(CreateTableFieldSort = 14)]
        public bool IsForbidden { get; set; }
    }
}
